package com.itheima.tlias84.po;

import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
public class InsertClazzParam {
    private int id;
    @NotNull(message = "用户名不能为空")
    @Length(min = 4,max = 30 ,message = "用户名长度为[2,30]")
    private String name;
    private String room;
    @NotNull(message = "开始时间不能为空")
    private LocalDate beginDate;
    @NotNull(message = "结束时间不能为空")
    private LocalDate endDate;
    private Integer masterId;
    @NotNull(message = "学科不能为空")
    private int subject;
    private LocalDateTime createTime;
    private LocalDateTime updateTime;
}
